/*
 * Copyright (c) 2017. 深圳一七科技. All rights reserved.
 */

package com.yiqi.liebang.feature.news.contract;

import com.suozhang.framework.framework.BasePresenter;
import com.suozhang.framework.framework.BaseView;
import com.yiqi.liebang.entity.bo.IssuesBo;
import com.yiqi.liebang.entity.bo.OtherUserId;
import com.yiqi.liebang.entity.bo.PeopleBo;
import com.yiqi.liebang.entity.bo.RelationshipBo;

import java.util.List;

import io.reactivex.Observable;

/**
 * LIJUWEN
 *
 * @email yiyayiyayaoljw@gmail.com
 * @date 2018/7/11 9:06
 */
public interface RelationshipContract {

    interface Model {
        Observable<String> deleteFriend(RelationshipBo relationshipBo);

        Observable<String> addBlack(RelationshipBo id);

        Observable<String> isFriend(OtherUserId id);
        Observable<String> commitAddFriend(PeopleBo registerBo);
    }

    interface View extends BaseView {
        void showDeleteFriendSuccess();
        void showAddFriendSuccess();
        void showAddBlackSuccess();
        void showIsFriendSuccess(boolean isFriend);
        void showError(String error);
    }


    interface Presenter extends BasePresenter {

        void deleteFriend(String deleteUserId);

        void addBlack(String blackUserId);

        void   isFriend(String id);
        void commitAddFriend(String friendId );
    }
}
